<h1>编辑照片信息</h1>
<% remote_form_for :photos, :url => mupdate_photos_url, :html => {:method => 'put'} do |f| -%>
<table border="0" cellspacing="5" cellpadding="5">
<% @upload_photos.each_with_index do |photo, index| -%>
  <tr>
    <td width="50%">
			<%= "<图片#{photo.id}>" %><br />
			<%= image_tag(photo.public_filename(:small)) %>
		</td>
    <td width="50%">
      <%= f.hidden_field "id_#{index}", :value => photo.id %>
      <p><label>照片标题</label><br />
        <%= f.text_field "title_#{index}" %></p>
      <p><label>照片描述</label><br />
        <%= f.text_area "description_#{index}", :rows => 8, :cols => 32 %></p>
    </td>
  </tr>
<% end -%>
</table>
<input type="hidden" name="photos[school_id]" value="<%= @school_id %>" />
<input type="hidden" name="photos[event_id]" value="<%= @event_id %>" />
<input type="hidden" name="photos[student_id]" value="<%= @student_id %>" />
<%= submit_tag "写好了，提交" %>
<% end -%>